s = '19'
n = int(s)
print(n, type(n))

f = 18.3
n2 = int(f)  # 自动向上取整
print(n, type(n))

b = True
n3 = int(b)
print(n3, type(n3))

str1 = '0'
print(bool(str1))  # True
str2 = ''
print(bool(str2))  # False
str3 = ' '
print(bool(str3))  # True
